package exceptions;

/**
 * Created by pc on 2015/1/29.
 */
public class Arcane1 {
    //无法编译通过，因为try里并无可能抛出IO exception
//    public static void main(String[] args) {
//        try {
//            System.out.println("Hello world");
//        } catch(IOException e) {
//            System.out.println("I've never seen println fail!");
//        }
//    }

    //捕获 Exception 或 Throwble 的 catch 子句是合法的
    public static void main(String[] args) {
        try {
            // If you have nothing nice to say, say nothing
        } catch(Exception e) {
            System.out.println("This can't happen");
        }
    }
}
